/* eslint-disable */
// @ts-ignore
import request from '@/utils/http';

import * as API from './types';

/** 当前登录人 POST /sysAuth/getLoginUser */
export async function sysAuthGetLoginUserUsingPost({
  options,
}: {
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingSysUserduixiang>('/sysAuth/getLoginUser', {
    method: 'POST',
    ...(options || {}),
  });
}

/** 登录-后台 POST /sysAuth/loginManage */
export async function sysAuthLoginManageUsingPost({
  body,
  options,
}: {
  body: API.yonghudengluxinxi;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingboolean>('/sysAuth/loginManage', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 退出登录-后台 POST /sysAuth/logoutManage */
export async function sysAuthLogoutManageUsingPost({
  options,
}: {
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingboolean>('/sysAuth/logoutManage', {
    method: 'POST',
    ...(options || {}),
  });
}
